#ifndef CNPIPE_SINGLENODE_H
#define CNPIPE_SINGLENODE_H

#include <QObject>

/** 单一节点对象，它包含了节点名称，X、Y、Z三个方向的坐标系，
 * 以及有关支架的信息
 */
class CNPIPE_singleNode : public QObject
{
public:
    CNPIPE_singleNode(double x, double y, double z,
                      QString node, QString type, QString constraintName, QString constraint) {
        this->x = x; this->y = y; this->z = z;
        this->node = node; this->type = type;
        this->constraintName = constraintName;
        this->constraint = constraint;
    }
    //确保x、y、z三个坐标值不会发生改变
    virtual double getX() {return this->x;}
    virtual double getY() {return this->y;}
    virtual double getZ() {return this->z;}
    virtual QString getNode() {return this->node;}
    virtual QString getType() {return this->type;}
    virtual QString getConstraintName() {return this->constraintName;}
    virtual QString getConsrtrint() {return this->constraint;}
private:
    double x; //x坐标
    double y; //y坐标
    double z; //z坐标
    QString node; //节点号
    QString type; //焊缝类型
    QString constraintName; //支架名称
    QString constraint; //支架类型
};

#endif // CNPIPE_SINGLENODE_H
